---
title: clsDurationCode
summary: API reference for clsDurationCode.
status: draft
owner: SAIF Case Management team
last_reviewed: 2026-08-21
library: SAIF.Business.Claim.Legal
reference_type: embedded
---

# clsDurationCode

`clsDurationCode` is a code-table entry type in the `CodeTables` component grouping of `SAIF.Business.Claim.Legal`. It represents one row of the `DURATION_CODE` reference table, populated by `clsDurationCodes` (`GetDurationCode`) via `SELECT CODE, CODE_DESCR, DAYS_NUM FROM DURATION_CODE`. Its `DaysNumber` field carries the number of days the duration code represents, likely used to compute due dates or scheduling offsets in legal-schedule/hearing workflows.*

## Purpose
- Represents one duration code/description pair sourced from `DURATION_CODE`.
- Carries `DaysNumber` so callers can convert a selected duration code into a concrete day-count for date calculations.*

## Context
- Namespace: `SAIF.Business.Claim.Legal.CodeTables`
- Assembly/package: `SAIF.Business.Claim.Legal`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| DaysNumber | `Public ReadOnly Property DaysNumber As Integer` | The `DAYS_NUM` value from `DURATION_CODE`, representing the number of days associated with this duration code. |
| New | `Friend Sub New(inCode As String, inDescr As String, inDaysNum As Integer)` | Constructs the entry from code, description, and day count; restricted to the assembly, so instances are only created by `clsDurationCodes` during retrieval.* |

## Inherited public members

Members in this section are inherited from `CodeTableInfo(Of String)` in `SAIF.Framework`. This base type is supplied by an external framework package rather than a documented dependency library in this run, so its members are not itemized here.**

## Behavioral notes
- Instances are only ever constructed internally by `clsDurationCodes.New` while iterating the `DURATION_CODE` query result.*

## Constraints and usage notes
- The `Friend` constructor means consumers cannot create ad-hoc `clsDurationCode` instances outside this assembly; they must retrieve entries via `GetDurationCode`.*

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

## Sources

- `SAIF.Business.Claim.Legal\mdlCodeTables.vb`